﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace SuiYuan.UI.Controls.ProgressBars
{
    public class LayUIProgressBar : ProgressBar
    {
        public Brush Color
        {
            get { return (Brush)GetValue(ColorProperty); }
            set { SetValue(ColorProperty, value); }
        }
        public static readonly DependencyProperty ColorProperty = DependencyProperty.Register("Color", typeof(Brush), typeof(LayUIProgressBar), new PropertyMetadata(new SolidColorBrush(System.Windows.Media.Color.FromArgb(0xFF, 0x5F, 0xB8, 0x78))));

        public bool ShowProgressNum
        {
            get { return (bool)GetValue(ShowProgressNumProperty); }
            set { SetValue(ShowProgressNumProperty, value); }
        }
        public static readonly DependencyProperty ShowProgressNumProperty = DependencyProperty.Register("ShowProgressNum", typeof(bool), typeof(LayUIProgressBar), new PropertyMetadata(false));
        public ProgressSize Size
        {
            get { return (ProgressSize)GetValue(SizeProperty); }
            set { SetValue(SizeProperty, value); }
        }

        public static readonly DependencyProperty SizeProperty = DependencyProperty.Register("Size", typeof(ProgressSize), typeof(LayUIProgressBar), new PropertyMetadata(ProgressSize.Normal));
    }


    public enum ProgressSize
    {
        Normal,
        Large
    }
}
